repo: Prevent GPG keys from being imported to keybox format
authorMatthew Barnes <mbarnes@redhat.com>
Thu, 14 May 2015 16:44:36 +0000 (12:44 -0400)
committerMatthew Barnes <mbarnes@redhat.com>
Thu, 14 May 2015 21:02:39 +0000 (17:02 -0400)
commit6a6479c3554876f8a3b6d234ec02b94dbe646ff2
tree764c725995dea2c19dd12476adfd5a57e0e10b26
parentefcdf4c3f86709172cb5e7f1d64ab7f9236bf2e5
repo: Prevent GPG keys from being imported to keybox format

If a remote keyring does not already exist, create an empty pubring.gpg
file in the temporary directory prior to importing keys.  This prevents
gpg2 from creating a pubring.kbx file in the new keybox format [1].  We
want to stay with the older keyring format since its performances issues
are not relevant here.

[1] https://gnupg.org/faq/whats-new-in-2.1.html#keybox
src/libostree/ostree-repo.c